@charset "UTF-8";
@import url(../fonts/roboto/stylesheet.css);
.nice-select {
  -webkit-tap-highlight-color: transparent;
  background-color: var(--surface-color);
  border-radius: 12px;
  border: 2px solid var(--border-color);
  box-sizing: border-box;
  clear: both;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  height: 48px;
  line-height: 44px;
  outline: none;
  padding-left: 16px;
  padding-right: 40px;
  position: relative;
  text-align: left !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
  width: auto;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.nice-select:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.nice-select:active, .nice-select.open, .nice-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-lg);
  transform: translateY(-1px);
}
.nice-select:after {
  border-bottom: 2px solid var(--primary-color);
  border-right: 2px solid var(--primary-color);
  content: "";
  display: block;
  height: 6px;
  margin-top: -3px;
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform-origin: 66% 66%;
  transform: rotate(45deg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 6px;
}
.nice-select.open:after {
  transform: rotate(-135deg);
  border-color: var(--primary-hover);
}
.nice-select.open .list {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
  visibility: visible;
}
.nice-select.disabled {
  border-color: var(--border-color);
  color: var(--text-secondary);
  pointer-events: none;
  opacity: 0.6;
}
.nice-select.disabled:after {
  border-color: var(--text-secondary);
}
.nice-select.wide {
  width: 100%;
}
.nice-select.wide .list {
  left: 0 !important;
  right: 0 !important;
}
.nice-select.right {
  float: right;
}
.nice-select.right .list {
  left: auto;
  right: 0;
}
.nice-select.small {
  font-size: 13px;
  height: 40px;
  line-height: 36px;
}
.nice-select.small:after {
  height: 5px;
  width: 5px;
}
.nice-select.small .option {
  line-height: 36px;
  min-height: 36px;
  font-size: 13px;
}
.nice-select .list {
  background-color: var(--surface-color);
  border-radius: 12px;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  box-sizing: border-box;
  margin-top: 8px;
  opacity: 0;
  overflow: hidden;
  padding: 8px 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  transform-origin: 50% 0;
  transform: scale(0.95) translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
  z-index: 999;
}
.nice-select .list:hover .option:not(:hover) {
  background-color: transparent !important;
}
.nice-select .option {
  cursor: pointer;
  font-weight: 500;
  line-height: 40px;
  list-style: none;
  min-height: 40px;
  outline: none;
  padding-left: 16px;
  padding-right: 16px;
  text-align: left;
  transition: all 0.2s ease;
  color: var(--text-primary);
  font-size: 14px;
  border-radius: 8px;
  margin: 2px 8px;
}
.nice-select .option:hover, .nice-select .option.focus, .nice-select .option.selected.focus {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  transform: translateX(4px);
}
.nice-select .option.selected {
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  position: relative;
}
.nice-select .option.selected::after {
  content: "✓";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--primary-color);
}
.nice-select .option.disabled {
  background-color: transparent;
  color: var(--text-secondary);
  cursor: default;
  opacity: 0.5;
}
.nice-select .option.disabled:hover {
  transform: none;
  background-color: transparent;
}

.no-csspointerevents .nice-select .list {
  display: none;
}

.no-csspointerevents .nice-select.open .list {
  display: block;
}

@media (prefers-color-scheme: dark) {
  .nice-select .option.selected {
    background: rgba(129, 140, 248, 0.2);
    color: var(--primary-color);
  }
}
@media (max-width: 768px) {
  .nice-select {
    height: 44px;
    line-height: 40px;
    font-size: 14px;
  }
  .nice-select .list {
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    /* Custom scrollbar */
  }
  .nice-select .list::-webkit-scrollbar {
    width: 6px;
  }
  .nice-select .list::-webkit-scrollbar-track {
    background: transparent;
  }
  .nice-select .list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
  }
  .nice-select .list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
  }
  .nice-select .option {
    line-height: 36px;
    min-height: 36px;
    font-size: 14px;
  }
  .nice-select.small {
    height: 40px;
    line-height: 36px;
  }
  .nice-select.small .option {
    line-height: 32px;
    min-height: 32px;
  }
}
.nice-select:focus-visible {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.nice-select .option:focus-visible {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: -2px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --success-color: #10b981;
  --secondary-color: #6b7280;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --background-color: #fafafa;
  --surface-color: #ffffff;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #a5b4ff;
    --primary-hover: #8895ff;
    --secondary-color: #9ca3af;
    --success-color: #22d3ee;
    --warning-color: #ffc85c;
    --danger-color: #ff8080;
    --background-color: #0f172a;
    --surface-color: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3),
      0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4),
      0 10px 10px -5px rgba(0, 0, 0, 0.2);
  }
  .btn.btn-primary {
    background-color: var(--primary-color);
    color: #0f172a !important;
  }
  .btn.btn-primary:hover {
    background-color: var(--primary-hover);
    filter: brightness(1.15);
  }
  .btn.btn-secondary {
    background-color: var(--primary-color);
    color: #1f1f1f !important;
  }
  .btn.btn-success {
    background-color: var(--success-color);
    color: #0f172a !important;
  }
  .btn.btn-success:hover {
    background-color: #1dbdd6;
    filter: brightness(1.05);
  }
  .btn.btn-warning {
    background-color: var(--warning-color);
    color: #0f172a !important;
  }
  .btn.btn-warning:hover {
    filter: brightness(1.15);
  }
  .btn.btn-danger {
    background-color: var(--danger-color);
    color: #0f172a !important;
  }
  .btn.btn-danger:hover {
    filter: brightness(1.15);
  }
  .success-message {
    background-color: #064e3b;
    color: #d1fae5;
    border: 1px solid #059669;
  }
}
body {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px 0;
}
.header h1 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
  letter-spacing: 0.025em;
  line-height: 1.2;
}
.header p {
  color: var(--text-secondary);
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 400;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.4;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-1px);
}
.stat-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1;
}
.stat-card p {
  opacity: 0.9;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.main-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 768px) {
  .main-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.main-grid .card {
  position: relative;
}
.main-grid .card:first-child {
  z-index: 9;
}

.card {
  background-color: var(--surface-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background-color: var(--surface-color);
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 400;
  line-height: 1.4;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}
.form-control::-moz-placeholder {
  color: var(--text-secondary);
  font-weight: 400;
}
.form-control::placeholder {
  color: var(--text-secondary);
  font-weight: 400;
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.01em;
}
.btn.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}
.btn.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}
.btn.btn-secondary {
  background-color: var(--secondary-color);
  color: #fff;
}
.btn.btn-secondary:hover {
  transform: translateY(-1px);
}
.btn.btn-secondary:active {
  transform: translateY(0);
  opacity: 0.9;
}
.btn.btn-success {
  background-color: var(--success-color);
  color: #fff;
}
.btn.btn-success:hover {
  background-color: #0dd197;
  transform: translateY(-1px);
}
.btn.btn-warning {
  background-color: var(--warning-color);
  color: #fff;
}
.btn.btn-warning:hover {
  background-color: #e08a00;
  transform: translateY(-1px);
}
.btn.btn-danger {
  background-color: var(--danger-color);
  color: #fff;
}
.btn.btn-danger:hover {
  background-color: #d92f2f;
  transform: translateY(-1px);
}
.btn.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

.students-section h2 {
  margin-bottom: 18px;
}

.search-bar {
  margin-bottom: 16px;
  position: relative;
}
.search-bar input {
  padding-left: 36px;
}
.search-bar .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 14px;
}

.student-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--surface-color);
  border-radius: 8px;
  overflow: hidden;
}
.student-table th,
.student-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}
.student-table th {
  background-color: var(--background-color);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.student-table tbody tr:hover {
  background-color: var(--background-color);
}
.student-table td strong {
  font-weight: 600;
  font-size: 14px;
}

.action-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}
.empty-state h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-weight: 600;
}
.empty-state p {
  font-size: 14px;
  line-height: 1.4;
}

.course-select,
select.form-control {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 100%;
  padding: 14px 40px 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  background: var(--surface-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(1em + 1px), calc(100% - 12px) calc(1em + 1px);
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
.course-select:hover,
select.form-control:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.course-select:focus,
select.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}
.course-select.validation-error,
select.form-control.validation-error {
  border-color: var(--danger-color) !important;
}
.course-select.validation-error:focus,
select.form-control.validation-error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.radio-item {
  position: relative;
}
.radio-item input[type=radio] {
  position: absolute;
  opacity: 0;
}
.radio-item input[type=radio]:checked + .radio-label {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}
.radio-item input[type=radio]:checked + .radio-label:before {
  background: white;
  transform: scale(0.7);
  border-color: white;
}
.radio-item .radio-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  background: var(--surface-color);
  color: var(--text-primary);
  cursor: pointer;
  gap: 8px;
}
.radio-item .radio-label:before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: transparent;
  transform: scale(0.7);
}
.radio-item .radio-label:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.success-message {
  background-color: #bbf7d0;
  color: #065f46;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid #86efac;
  font-size: 13px;
  font-weight: 500;
}

.validation-error {
  border-color: var(--danger-color) !important;
}

.error-message {
  color: var(--danger-color);
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  .action-buttons {
    flex-direction: column;
  }
  .btn.btn-small {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 16px;
  }
  .card {
    padding: 16px;
  }
  .student-table th,
  .student-table td {
    padding: 8px 6px;
    font-size: 12px;
  }
}
@media (min-width: 786px) {
  .main-grid .card:first-child {
    position: sticky;
    top: 10px;
  }
}
.swal2-popup {
  background-color: var(--surface-color) !important;
  color: var(--text-primary) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-lg) !important;
}

.swal2-title {
  color: var(--text-primary) !important;
  font-weight: 600;
}

.swal2-html-container {
  color: var(--text-secondary) !important;
  font-size: 16px;
}

.swal2-actions .swal2-confirm {
  background-color: var(--primary-color) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-weight: 500;
}

.swal2-actions .swal2-confirm:hover {
  background-color: var(--primary-hover) !important;
}

.swal2-actions .swal2-deny,
.swal2-actions .swal2-cancel {
  background-color: var(--danger-color) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-weight: 500;
}

.swal2-actions .swal2-deny:hover,
.swal2-actions .swal2-cancel:hover {
  filter: brightness(1.15);
}

@media (prefers-color-scheme: dark) {
  .swal2-actions .swal2-confirm,
  .swal2-actions .swal2-deny,
  .swal2-actions .swal2-cancel {
    font-weight: 600;
  }
}